package com.bzm.common.entity;

import com.bzm.common.global.GlobalConfig;

import lombok.Data;

@Data
public class JsonTotalResult<T> {

	/**
	 * 返回数据
	 */
    private T data;
    
    /**
     * 错误码
     */
    private Integer code;
    
    /**
     * 描述信息
     */
    private String msg;
    
    /**
     * 总数量
     */
    private Long total;
    
    private String fileService;
    
    public JsonTotalResult(){
    	
    }
    
    public JsonTotalResult(T data,HttpCode httpCode,Long total) {
        this.data = data;
        this.code = httpCode.getCode();
        this.msg = httpCode.getMsg();
        this.total=total;
        this.fileService = GlobalConfig.FILE_SERVICE_LOCATION;
    }

}
